home *** CD-ROM | disk | FTP | other *** search
- Path: remus.rutgers.edu!not-for-mail
- From: wempa@remus.rutgers.edu (Force Of Nature)
- Newsgroups: comp.lang.c
- Subject: Character String --> Integer
- Date: 7 Feb 1996 15:02:18 -0500
- Organization: Rutgers University LCSR
- Message-ID: <4fb0ga$lsa@remus.rutgers.edu>
- NNTP-Posting-Host: remus-fddi.rutgers.edu
-
- Is there an easy way to convert a character string such as '2425' to the
- integer 2425 ??? The only way I can think of is to pick off characters
- one at a time and use switch statements to determine the value (0-9) and
- then multiply by the correct power of 10. Is there an easier way to do
- this ???????
-
-
- --
- --------------------------------------------------------------
- Kristofer Wempa wempa@eden.rutgers.edu
- http://remus.rutgers.edu/~wempa wempa@remus.rutgers.edu
- --------------------------------------------------------------
-